package com.hrt.datasender.datasent.serial;

import java.util.HashMap;
import java.util.List;

import com.btcode.common.BitType;
import com.hrt.datasender.datacollect.drive.DriveConfigModel;
import com.hrt.serial.modbus.ModbusDataDecode;
import com.hrt.serial.modbus.ModbusDataFrameDecoderBase;
import com.hrt.serial.modbus.ModbusDataModel;

/**
 * modbus数据解析类
 * 
 * @author gislin
 */
public class DataDecode extends ModbusDataDecode {

    /**
     * 
     * @param data
     * @param byteLength
     * @return
     */
    public synchronized List<ModbusDataModel> dataModelDecode(byte[] data, int byteLength, DriveConfigModel deviceConfigs) {

        List<ModbusDataModel> models = null;

        return models;

    }

    @Override
    public ModbusDataFrameDecoderBase getDataFrameDecoder(byte[] finalByteData) {
        ModbusDataFrameDecoderBase modbusMsgModel = new DataFrameDecoder212(finalByteData);
        return modbusMsgModel;
    }

}
